home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 838 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.6 KB  |  61 lines

  1. Path: engnews1.Eng.Sun.COM!usenet
  2. From: kj7bg@primenet.com (Bob White)
  3. Newsgroups: comp.std.c++
  4. Subject: Opinion on List & Namespace Problem Needed
  5. Date: 25 Mar 1996 16:43:25 GMT
  6. Organization: Primenet Services for the Internet
  7. Sender: root@primenet.com
  8. Approved: clamage@eng.sun.com (comp.std.c++)
  9. Message-ID: <4j6i59$3s7@nnrp1.news.primenet.com>
  10. NNTP-Posting-Host: taumet.eng.sun.com
  11. Mime-Version: 1.0
  12. Content-Type: Text/Plain; charset="US-ASCII"
  13. X-Posted-By: ip181.boi.primenet.com
  14. X-Newsreader: WinVN 0.99.7
  15. X-Lines: 36
  16. Content-Length: 661
  17.  
  18. I am using Borland C++ v5.00 with patch 1 applied with the following program:
  19.  
  20. #include    <list>
  21. class    xyz : public std::list<int> {
  22.     int    zz;
  23. }
  24.  
  25. int        main(
  26. ) {
  27.     xyz        Abc;
  28. }
  29.  
  30. My interpretation of the new standard is that this should work, but it 
  31. doesn't.  I get errors on undefined routine for each of the routines which are 
  32. declared within class list, but implemented outside of the class definition 
  33. for example:
  34.  
  35. namespace std {
  36.  
  37. Template<class CharT>
  38. class    list {
  39.     int    xyz();
  40. }
  41.  
  42. template<class CharT>
  43. int    list::xyz()
  44. {
  45. }
  46.  
  47. }
  48.  
  49. My opinion is that this is reasonable syntax.  Am I wrong or should I report 
  50. it as a bug?  Thank you for your assistance.
  51.  
  52.                 Bob
  53.  
  54.  
  55.  
  56. [ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
  57. [ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
  58. [ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
  59. [ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
  60. [ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]
  61.